package com.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;

import com.bean.Emp;
import com.service.EmpService;

public class EmpController {
	@Autowired
	private EmpService empService;

	public String emplist(Model model) {
		List<Emp> list = empService.listAll();
		model.addAttribute("list", list);
		return "empList";

	}
}
